function DataHandle(method,url,data){
	this.method = method;
	this.url=url;
	this.data=data;
	
}
function LoadData()
{
	$.ajax({
		type: 'GET',
		url: 'sample.json',
		dataType: 'json',
		data:"",
		success: function(html) {
			if(html == "" || html == null){
					alert("empty");
				}else {
					add(parseJson(html));
			}
		},
		error: function(xhr, textStatus, errorThrown) {
			NotifyTryAgain();
		}
	});
}

function add(str)
{
	var $boxes = $(str);
	var $newImages = $('#sample').html( $boxes );
}

function parseJson(data)
{
	var html="";
	$.each(data.res,function(i,item){
		html=html+"<tr><td>"+item.name+"</td><td>"+item.percetage+"</td></tr>"
	});
	return html;
}